-- GENERATED SPELL FOR [Shattered Sun Marksman] --


function spell0_24938(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(38858,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24938', 519, 1)
end

function Sorts_24938(pUnit, Event)
local choix_sorts_24938 = math.random(0, 0)
if choix_sorts_24938 == 0 then
pUnit:RegisterEvent('spell0_24938', 1, 1)
end
end

function mob24938_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24938', math.random(1500, 3000), 1)
end

function mob24938_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24938_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24938_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24938, 1, 'mob24938_Action')
RegisterUnitEvent(24938, 2, 'mob24938_Leave')
RegisterUnitEvent(24938, 3, 'mob24938_Kill')
RegisterUnitEvent(24938, 4, 'mob24938_Die')
